/**
 * 
 */
package com.glela.platform.service;

import com.glela.platform.model.Token;
import com.glela.platform.model.User;
import com.glela.platform.model.response.ResponseUser;

/**
 * @author liujie
 *
 */
public interface TokenService {

	public String SaveToken(ResponseUser user,String clientType);
	
	public String SaveToken2(User user,String clientType);

	public Token selectTokenByCode(String code,String clientType);
	
	public Token selectToken(Token record);
	
	public void cacheUserToken(String token,Long userId,String clientType);
	
	public Token selectTokenFormCache(Long userId,String clientType) ;
	
	public Token isLogin(Token record);
}
